package com.qidianit.task.controller;

import com.qidianit.task.service.MenuService;
import com.qidianit.task.util.pojo.QdResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**e
 * @Author hitsune
 * @Company kafu chino
 * @Description
 * @Time 2024/9/5 上午 11:35
 */
@RestController
@RequestMapping("/menu")
@CrossOrigin
public class MenuController {
    @Autowired
    private MenuService menuService;
    @GetMapping("/list")
    public QdResult list(){
        return menuService.queryMenus();
    }
}
